package cn.tedu.oop;

public class Test2_Class {
    public static void main(String[] args) {
        new Phone().call();
        Phone p = new Phone();
        System.out.println(p);

        p.call();
        p.message();
        p.music();
        p.color = "red";
        p.size = 5.7;
        p.brand = "HUAWEI";
        p.price = 5899;

        System.out.println(p.color);
        System.out.println(p.size);
        System.out.println(p.brand);
        System.out.println(p.price);
    }
}
class Phone{
    String color;
    double size;
    String brand;
    int price;

    public void call(){
        System.out.println("call()...");
    }
    public void message(){
        System.out.println("message()...");
    }
    public void music(){
        System.out.println("music()...");
    }
}